]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Don't initialize variables to undefined
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 19 Aug 2019 19:14:33 +0000 (21:14 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 11 Sep 2019 20:59:31 +0000 (20:59 +0000)
The declaration itself already does this implicitly.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

js/ui/workspace.js

index 9a8c0d94db3c7426c93da2ff1ab1abe3d8f644d6..d16a5c1ca551fe37a73cddfc43d467e85ba359f4 100644 (file)
@@ -1985,7 +1985,7 @@ var Workspace = class {
     }
 
     _onCloneSelected(clone, time) {
-        let wsIndex = undefined;
+        let wsIndex;
         if (this.metaWorkspace)
             wsIndex = this.metaWorkspace.index();
         Main.activateWindow(clone.metaWindow, time, wsIndex);